package com.maxmlr.music.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author max
 * @version 1.0
 * @ClassName User
 * @Description 
 * @Copyright Copyright (c) 2020: www.maxmlr.com.
 * @since 2020-06-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("adm_user")
@ApiModel(value="User对象", description="")
public class User extends Model<User> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @TableField("user_name")
    private String userName;

    /**
     * 真实名字
     */
    @ApiModelProperty(value = "真实名字")
    @TableField("name")
    private String name;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @TableField("mobile")
    private String mobile;

    /**
     * 状态 0:禁用，1:正常
     */
    @ApiModelProperty(value = "状态 0:禁用，1:正常")
    @TableField("status")
    private Integer status;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private Integer sex;

    /**
     * 出身日期
     */
    @ApiModelProperty(value = "出身日期")
    @TableField("birth")
    private Date birth;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    @TableField("dept_id")
    private Integer deptId;

    @TableField("pic_id")
    private Integer picId;

    /**
     * 现居住地
     */
    @ApiModelProperty(value = "现居住地")
    @TableField("live_address")
    private String liveAddress;

    /**
     * 爱好
     */
    @ApiModelProperty(value = "爱好")
    @TableField("hobby")
    private String hobby;

    /**
     * 省份
     */
    @ApiModelProperty(value = "省份")
    @TableField("province")
    private String province;

    /**
     * 所在城市
     */
    @ApiModelProperty(value = "所在城市")
    @TableField("city")
    private String city;

    /**
     * 所在地区
     */
    @ApiModelProperty(value = "所在地区")
    @TableField("district")
    private String district;

    /**
     * 创建用户id
     */
    @ApiModelProperty(value = "创建用户id")
    @TableField("create_user_id")
    private Integer createUserId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
